⏳ Long Focus Session
(24 actions, 16 KB)
0 Run Shortcut
Pause Audio
Workflow
:
{ "workflowIdentifier": "38076F1B-7774-4E0D-A6E3-7B8DB026DE6C", "workflowName": "Pause Audio", "isSelf": false }
1 Run Shortcut
🎧 Connect to Headphone
Workflow
:
{ "workflowIdentifier": "B9388065-431B-4984-913A-28A2AC524202", "workflowName": "🎧 Connect to Headphone", "isSelf": false }
2 If
[Shortcut Input]
has any value
3 Get Numbers from
[Shortcut Input]
4 Otherwise
5 Ask for
Number
Input
AskActionDefaultAnswerNumber
:
2
AskActionAllowsNegativeNumbers
:
false
AskActionAllowsDecimalNumbers
:
false
AskActionPrompt
:
⚛️ How many focus sessions?
6 End If »
7
9
11
7 Repeat
[6 numFocusSessions]
Times
8 Run Shortcut
⚛️ Deep Work Session
Workflow
:
{ "workflowIdentifier": "3412307F-40EB-414F-A10D-2AB1F3CF0DD2", "workflowName": "⚛️ Deep Work Session", "isSelf": false }
9 If
[6 numFocusSessions]
>
1
10 Set Media Volume to
0.5997374653816223
11 If
[Repeat Index]
is
[6 numFocusSessions]
12 Dictionary »
{ "text": "Great job! Take a long break!", "language": "EN" }
13 Run Shortcut
_Text2Speech
Input
:
[12 Dictionary]
Workflow
:
{ "workflowIdentifier": "9E67FDF1-AE7E-4051-8D46-DDFD104CB87C", "workflowName": "_Text2Speech", "isSelf": false }
14 Otherwise
15 Number
5
»
16
18
16 Calculate Expression
[15 Number]
* 60 -
[15 Number]
»
17 Wait
[16 Calculation Result]
seconds
18 Run Shortcut
Countdown Timer
Input
:
[15 Number]
Workflow
:
{ "workflowIdentifier": "33949C11-4961-48B4-AF8F-91D746F6139D", "workflowName": "Countdown Timer", "isSelf": false }
19 Dictionary »
{ "text": "Time to focus!", "language": "EN" }
20 Run Shortcut
_Text2Speech
Input
:
[19 Dictionary]
Workflow
:
{ "workflowIdentifier": "9E67FDF1-AE7E-4051-8D46-DDFD104CB87C", "workflowName": "_Text2Speech", "isSelf": false }
21 End If ▵
14
22 End If ▵
9
23 End Repeat Times ▵
7